package com.qjl.shopping.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author liguanghui
 * @Date 2023/4/9
 */
@Configuration
public class MybatisPlusConfig {
    @Bean
    public PaginationInterceptor paginationInterceptor() {
//        System.out.println("注册分页插件");
        return new PaginationInterceptor();
    }
}
